<!DOCTYPE html>
<html lang="en">
<head>
<title>WebView4Delphi: uWVTypeLibrary: Interface ICoreWebView2Settings8</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="PasDoc 0.16.0-snapshot">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body>
<span id="ICoreWebView2Settings8"></span><h1 class="cio">Interface ICoreWebView2Settings8</h1>
<div class="sections">
<div class="one_section"><a class="section" href="#PasDoc-Description">Description</a></div><div class="one_section"><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></div><div class="one_section">Fields</div><div class="one_section"><a class="section" href="#PasDoc-Methods">Methods</a></div><div class="one_section">Properties</div></div>
<span id="PasDoc-Description"></span><h2 class="unit">Unit</h2>
<p class="unitlink">
<a href="uWVTypeLibrary.html">uWVTypeLibrary</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type ICoreWebView2Settings8 = interface(<a class="normal" href="uWVTypeLibrary.ICoreWebView2Settings7.html">ICoreWebView2Settings7</a>)</code></p>
<h2 class="description">Description</h2>
<p>
 A continuation of the ICoreWebView2Settings interface to manage smartscreen. </p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings8">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2settings8</a>&quot;&gt;See the ICoreWebView2Settings8 article.)</p>
<span id="PasDoc-Hierarchy"></span><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">IUnknown</li>
<li class="ancestor"><a class="normal" href="uWVTypeLibrary.ICoreWebView2Settings.html">ICoreWebView2Settings</a></li>
<li class="ancestor"><a class="normal" href="uWVTypeLibrary.ICoreWebView2Settings2.html">ICoreWebView2Settings2</a></li>
<li class="ancestor"><a class="normal" href="uWVTypeLibrary.ICoreWebView2Settings3.html">ICoreWebView2Settings3</a></li>
<li class="ancestor"><a class="normal" href="uWVTypeLibrary.ICoreWebView2Settings4.html">ICoreWebView2Settings4</a></li>
<li class="ancestor"><a class="normal" href="uWVTypeLibrary.ICoreWebView2Settings5.html">ICoreWebView2Settings5</a></li>
<li class="ancestor"><a class="normal" href="uWVTypeLibrary.ICoreWebView2Settings6.html">ICoreWebView2Settings6</a></li>
<li class="ancestor"><a class="normal" href="uWVTypeLibrary.ICoreWebView2Settings7.html">ICoreWebView2Settings7</a></li>
<li class="thisitem">ICoreWebView2Settings8</li></ul><h2 class="overview">Overview</h2>
<span id="PasDoc-Methods"></span><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Settings8.html#Get_IsReputationCheckingRequired-Integer-">Get_IsReputationCheckingRequired</a></strong>(out value: Integer): HResult; stdcall;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Settings8.html#Set_IsReputationCheckingRequired-Integer-">Set_IsReputationCheckingRequired</a></strong>(value: Integer): HResult; stdcall;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Get_IsReputationCheckingRequired-Integer-"></span><code>function <strong>Get_IsReputationCheckingRequired</strong>(out value: Integer): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 SmartScreen helps webviews identify reported phishing and malware websites and also helps users make informed decisions about downloads. `IsReputationCheckingRequired` is used to control whether SmartScreen enabled or not. SmartScreen is enabled or disabled for all CoreWebView2s using the same user data folder. If CoreWebView2Setting.IsReputationCheckingRequired is true for any CoreWebView2 using the same user data folder, then SmartScreen is enabled. If CoreWebView2Setting.IsReputationCheckingRequired is false for all CoreWebView2 using the same user data folder, then SmartScreen is disabled. When it is changed, the change will be applied to all WebViews using the same user data folder on the next navigation or download. The default value for `IsReputationCheckingRequired` is true. If the newly created CoreWebview2 does not set SmartScreen to false, when navigating(Such as Navigate(), LoadDataUrl(), ExecuteScript(), etc.), the default value will be applied to all CoreWebview2 using the same user data folder. SmartScreen of WebView2 apps can be controlled by Windows system setting &quot;SmartScreen for Microsoft Edge&quot;, specially, for WebView2 in Windows Store apps, SmartScreen is controlled by another Windows system setting &quot;SmartScreen for Microsoft Store apps&quot;. When the Windows setting is enabled, the SmartScreen operates under the control of the `IsReputationCheckingRequired`. When the Windows setting is disabled, the SmartScreen will be disabled regardless of the `IsReputationCheckingRequired` value set in WebView2 apps. In other words, under this circumstance the value of `IsReputationCheckingRequired` will be saved but overridden by system setting. Upon re-enabling the Windows setting, the CoreWebview2 will reference the `IsReputationCheckingRequired` to determine the SmartScreen status. \snippet SettingsComponent.cpp ToggleSmartScreen </p>
<h6 class="description_section">Attributes</h6>
<dl class="attributes">
  <dt>GUID['{9E6B0E8F-86AD-4E81-8147-A9B5EDB68650}']</dt>
  <dd></dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Set_IsReputationCheckingRequired-Integer-"></span><code>function <strong>Set_IsReputationCheckingRequired</strong>(value: Integer): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Sets whether this webview2 instance needs SmartScreen protection for its content. Set the `IsReputationCheckingRequired` property. </p>
</td></tr>
</table>
<hr><span class="appinfo"><em>Generated by <a href="https://pasdoc.github.io/">PasDoc 0.16.0-snapshot</a>. </em>
</span>
</body></html>
